﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Bipoland
{
    public class Scrolling
    {
        private Vector2 scrolling;

        public Vector2 Scrolling1
        {
            get { return scrolling; }
            set { scrolling = value; }
        }

        private Scrolling() 
        {
            scrolling = new Vector2();
        }
        private static Scrolling instance;
        public static Scrolling getInstance()  
        {
            if (instance==null)
            {
                instance = new Scrolling();
            }

            return instance;
        }

        public void updatePos(Vector2 posPlayer) 
        {
            scrolling = posPlayer;
        }
    }
}
